<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core">
    <h:head>
        <title>Componentes para a saída de textos e imagens</title>
    </h:head>
    <h:body>
        <h:form id="formulario"
                prependId="false">
            <h:commandButton value="Gerar Texto" 
                             action="#{controleComponentes.geraTexto()}" 
                             id="btnGerar"/>
            <h:commandLink action="#{controleComponentes.geraTexto()}" > 
            <h:graphicImage library="images" name="jsf.jpg"/>
            </h:commandLink>
            <h:outputText value="#{controleComponentes.texto}" 
                          escape="false" /><br />
            <h:outputFormat value="Eu moro em {0}, {1}" > 
                <f:param  value="Passo Fundo" />
                <f:param  value="Rio Grande do Sul" />

            </h:outputFormat><br />
           
            <h:graphicImage url="resources/images/jsf.jpg" /> <br />
            <h:graphicImage value="#{resource['images:jsf.jpg']}" />
        </h:form>
    </h:body>
</html>

